public class Demo01 {
    public static void main(String[] args) {
//        1-100之间的素数  嵌套循环
        for (int i = 2; i <= 100; i++) {
            boolean isOpen = true;
            for (int j = 2; j < i; j++) {
                if (i%j== 0) {
                    isOpen = false;
                    break;
                }
            }
            if (isOpen) {
                System.out.println(i);

            }
        }
    }
}
